package com.ivo.activiti.bpmn.record;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wj
 * @version 1.0
 */
@Service
public class NodeService {

    @Resource
    private NodeRepository nodeRepository;

    Node getNode(String node) {
        return nodeRepository.findById(node).orElse(null);
    }

    void saveNode(Node node) {
        nodeRepository.save(node);
    }
}
